import { createAPI } from 'utils/request.js'

/**
 * 登录
 * @param {*} data {mobile,code,agree}
 */
export const login = data => createAPI('/v1_0/authorizations', 'post', data)

// 获取用户信息
export const getUserInfo = data => createAPI('/v1_0/user/profile', 'get', data)